package com.iweb.user.model;

import java.math.BigDecimal;
import java.util.Date;

public class Order {
    private long orderId;
    private int userId;
    private int showId;
    private int seatId;
    private String showName;
    private String category;
    private int rowNum;
    private int colNum;
    private BigDecimal price;
    private Date createTime;
    private String status; // <-- 修改类型为 String

    public Order() {
    }

    public Order(long orderId, int userId, int showId, int seatId, String showName, String category, int rowNum, int colNum, BigDecimal price, Date createTime, String status) { // <-- 修改类型
        this.orderId = orderId;
        this.userId = userId;
        this.showId = showId;
        this.seatId = seatId;
        this.showName = showName;
        this.category = category;
        this.rowNum = rowNum;
        this.colNum = colNum;
        this.price = price;
        this.createTime = createTime;
        this.status = status;
    }

    public long getOrderId() {
        return orderId;
    }

    public void setOrderId(long orderId) {
        this.orderId = orderId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getShowId() {
        return showId;
    }

    public void setShowId(int showId) {
        this.showId = showId;
    }

    public int getSeatId() {
        return seatId;
    }

    public void setSeatId(int seatId) {
        this.seatId = seatId;
    }

    public String getShowName() {
        return showName;
    }

    public void setShowName(String showName) {
        this.showName = showName;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public int getRowNum() {
        return rowNum;
    }

    public void setRowNum(int rowNum) {
        this.rowNum = rowNum;
    }

    public int getColNum() {
        return colNum;
    }

    public void setColNum(int colNum) {
        this.colNum = colNum;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    // --- 修改 Getter 和 Setter ---
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderId=" + orderId +
                ", userId=" + userId +
                ", showId=" + showId +
                ", seatId=" + seatId +
                ", showName='" + showName + '\'' +
                ", category='" + category + '\'' +
                ", rowNum=" + rowNum +
                ", colNum=" + colNum +
                ", price=" + price +
                ", createTime=" + createTime +
                ", status='" + status + '\'' + // <-- 修改
                '}';
    }
}
